package com.eve.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.eve.common.util.Jsons;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")  // 对外提供的微服务名称（同Eureka上面的）
public interface PaymentSFeignService {
	// 调用服务端提供的接口(返回结果的类型为请求接口的返回类型)
	@GetMapping(value = "/dept/find/{deptId}")
	Jsons findOne(@PathVariable("deptId") Long deptId);
	
	@GetMapping(value = "/dept/feign/timeout")
	int timeoutTest();
	
	
}
